//package Boot.test.Listener;
//
//import Boot.test.Dao.ServerBook;
//import Boot.test.Domain.two;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//
//import javax.annotation.PostConstruct;
//import java.util.Date;
//import java.util.List;
//import java.util.Timer;
//import java.util.TimerTask;
//
//@Component
//@EnableScheduling
//public class Auto {
//
//    @Autowired
//   private ServerBook serverBook;
//
//    @PostConstruct
//    @Scheduled(fixedDelay = 1000)
//    public void contextInitialized() {
////        List<two> all = serverBook.findAll();
//    }
//}
